import { useState } from 'react'
import { Button } from 'tdesign-react'
import Dice from './Dice'

import styles from './index.module.less'

const DiceGameJ = (props: any) => {

  const [timestamp, setTimestamp] = useState(Date.now())

  const dropDice = () => {
    setTimestamp(Date.now())
  }

  return <div className={styles.diceGameJ}>
    {/* 骰子游戏 */}
    {/* <div className={styles.dicePoint}>点数为: {currentPoint}</div> */}
    <Dice timestamp={timestamp} />
    <Button onClick={() => { dropDice() }}>掷骰子</Button>
  </div>
}

export default DiceGameJ
